<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * Menangani home
 * @author petra.barus
 */
class Submissions_Controller extends Template_Controller {
    protected $restrict_guest = FALSE;
    public $use_template = TRUE;

    /**
     * Menampilkan index
     */
    public function index()
    {
        $this->body->submissions = Submission_Model::get_list();
        $this->title = "Submissions";
    }

    public function view($token)
    {
        $submission = new Submission_Model($token);
        if (!$submission->loaded)
        {
            
        }
        $this->body->submission = $submission;
        $this->title = "Submission";
    }
}
//end of file